package com.insurance.utils;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.junit.Test;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/10/30 12:49
 * Description:密码加密加盐
 * Version: V1.0
 */
public class PasswordEncryption {

    public static String passwordEncryption(String pwd){
        SimpleHash simpleHash = new SimpleHash("md5",pwd,"zhuxiong",3);
        return simpleHash.toString();
    }
}
